package com.dx.spring6_15.lifeTime;

public class Car {

	public Car() {
		super();
		System.out.println("构造方法");
		
	}
	private String brand;
	
	public String getBrand() {
		return brand;
	}
	
	public void setBrand(String brand) {
		this.brand = brand;
		System.out.println("setting");
	}
	
	public void init(){
		System.out.println("init");
	}
	public void destory(){
		System.out.println("destory");
	}

	@Override
	public String toString() {
		return "Car [brand=" + brand + "]";
	}
	
}
